package net.neptech.feign;

import net.neptech.annotation.FeignResponseHandle;
import net.neptech.model.sys.User;
import net.neptech.vm.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteUserService", value = "system")
public interface RemoteUserService {
    /**
     * 注册用户信息
     *
     * @param user 用户信息
     * @return 结果
     */
    @PostMapping("/system/user/register")
    @FeignResponseHandle
    public ResponseResult<User> registerUserInfo(@RequestBody User user);

    /**
     * 查询用户信息
     */
    @PostMapping("/system/user/selectUser")
    @FeignResponseHandle
    public ResponseResult<User> selectUser(@RequestBody User user);
}
